package com.ruoyi.system.WebController;

import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.system.domain.ByStandardSystemItem;
import com.ruoyi.system.service.IByStandardSystemItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * 体系子Controller
 *
 * @author ruoyi
 * @date 2024-03-12
 */
@RestController
@RequestMapping("/byWeb/standardItem")
public class WebByStandardSystemItemController  extends BaseController {

    @Autowired
    private IByStandardSystemItemService byStandardSystemItemService;

    /**
     * 查询体系子列表
     */
    @GetMapping("/list")
    public TableDataInfo list(ByStandardSystemItem byStandardSystemItem)
    {
        startPage();
        List<ByStandardSystemItem> list = byStandardSystemItemService.selectByStandardSystemItemList(byStandardSystemItem);
        return getDataTable(list);
    }

}
